# -*- coding: utf-8 -*-
"""
本地有约 - 主URL配置
"""

from django.contrib import admin
from django.urls import path, include
from django.views.generic import TemplateView
from django.conf import settings
from django.conf.urls.static import static

urlpatterns = [
    # Admin后台
    path('admin/', admin.site.urls),
    
    # 首页
    path('', TemplateView.as_view(template_name='home.html'), name='home'),
    
    # 用户系统
    path('users/', include('users.urls')),
    
    # 活动管理
    path('activities/', include('activities.urls')),
    
    # 积分系统
    path('points/', include('points.urls')),
    
    # 社交互动（API）
    path('social/', include('social.urls')),
    
    # 推荐系统（API）
    path('recommendations/', include('recommendations.urls')),
    
    # 通知系统
    path('notifications/', include('notifications.urls')),
]

# 开发环境下的媒体文件服务
if settings.DEBUG:
    urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
    urlpatterns += static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)
